﻿@{
    Layout = null;
}
@model List<LeEdu.MODEL.BllTable>
@{
    ViewBag.Title = "virtualcoin";
}

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="">
<!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="c94e499659dcd37fcc383ba9a118e7a295dd9ee1" name="csrf-token">
    <title>
        虚拟币管理 -
        账务
        | EduSoho
    </title>

    <link href="http://www.zhishile.com/files/system/2015/06-20/102236c61b61855109.ico?6.9.6" rel="shortcut icon">

    <link href="~/Content/css/bootstrap.css" rel="stylesheet">
    <link href="~/Content/css/common.css" rel="stylesheet">
    <link href="~/Content/css/admin.css" rel="stylesheet">
    <link href="~/Content/css/admin_v2.css" rel="stylesheet">
    <link rel="stylesheet" media="screen" href="~/Content/css/es-icon.css">
    <script src="~/bootstrap-3.3.5-dist/jquery-2.0.0.min.js"></script>
    <script src="~/bootstrap-3.3.5-dist/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>

    @*文本框输入产生日期效果的问题*@
    <link href="~/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <script src="~/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.min.js"></script>
    <script src="~/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <!--[if lt IE 9]>
      <script src="/assets/libs/html5shiv.js?6.9.6"></script>
      <script src="/assets/libs/respond.min.js?6.9.6"></script>
    <![endif]-->
    <script>
        $(function () {
            $('a[href^="#"]').click(function () {
                var the_id = $(this).attr("href");
                $('html, body').animate({
                    scrollTop: $(the_id).offset().top
                }, 'slow');
                return false;
            });
            $('#Starttime').datetimepicker({
                format: 'yyyy-mm-dd',
                minView: "month", //选择日期后，不会再跳转去选择时分秒
                //format: "yyyy-mm-dd", //选择日期后，文本框显示的日期格式
                language: 'zh-CN', //汉化
                autoclose: true,//选择日期后自动关闭
                forceParse: true,
                todayBtn: true,
            });

            //鼠标悬浮时间
            $('#Starttime').hover(function () {
                document.getElementById("article-property-tips-html").style.display = "";
            }, function () {
                document.getElementById("article-property-tips-html").style.display = "none";
            })


            $('#Endtime').datetimepicker({
                format: 'yyyy-mm-dd',
                minView: "month", //选择日期后，不会再跳转去选择时分秒
                //format: "yyyy-mm-dd", //选择日期后，文本框显示的日期格式
                language: 'zh-CN', //汉化
                autoclose: true,//选择日期后自动关闭
                forceParse: true,
                todayBtn: true,
            });

            //鼠标悬浮时间
            $('#Endtime').hover(function () {
                document.getElementById("article-property-tips-html").style.display = "";
            }, function () {
                document.getElementById("article-property-tips-html").style.display = "none";
            })
        })
    </script>
</head>
<body>
    @Html.Partial("~/Views/Shared/HouTai_DaoHang.cshtml")
    <div class="container">
        <div class="row">

            <div class="col-md-2">

                <div class="list-group">
                    <a class="list-group-item " href="finance">账单管理</a>

                    <a class="list-group-item active" href="virtualcoin">虚拟币管理</a>

                    <a class="list-group-item" href="courserefund">课程退款管理</a>

                    <a class="list-group-item" href="Graderefund">班级退款管理</a>

                </div>
            </div>

            <div class="col-md-10">
                <div class="page-header clearfix">
                    <h1 class="pull-left">虚拟币管理</h1>
                    <div class="pull-right">


                    </div>
                </div>








                <form id="user-search-form" class="form-inline well well-sm" action="/Trade/finance" method="get" novalidate="">
                    按时间：
                    <div class="form-group">
                        <div class="controls">
                            <input readonly class="form-control" id="Starttime" type="text" name="Starttime" value="@DateTime.Now.ToString("yyyy-MM-dd")">
                            <input type="hidden" value="@ViewBag.StarTime" />
                        </div>
                    </div>
                    →
                    <div class="form-group">
                        <div class="controls">
                            <input readonly class="form-control" id="Endtime" type="text" name="Endtime" value="@DateTime.Now.ToString("yyyy-MM-dd")">
                            <input type="hidden" value="@ViewBag.EndTime" />
                        </div>
                    </div>
                    <div class="form-group">
                        <input id="nickname" name="nickname" value="@ViewBag.nickname" class="form-control" placeholder="用户名" type="text">
                        <input type="hidden" value="@ViewBag.nickname" />
                    </div>

                    <button class="btn btn-primary">搜索</button>
                    <a class="btn btn-primary" href="http://www.zhishile.com/admin/coin/bill/export/RMB">导出结果</a>

                </form>

    

                <div class="table-responsive">
                    @if (Model != null)
                    {
                        <table class="table table-striped">
                            <tbody>
                                <tr>
                                    <th width="30%">用户</th>
                                    <th>
                                        充值
                                    </th>
                                    <th>
                                        消费
                                    </th>
                                    <th>账户余额</th>

                                </tr>
                                @foreach (var item in Model)
                                {
                                    <tr>
                                        <td>
                                            <a href="#"><strong>@item.UserInfo.Uname</strong></a>
                                        </td>
                                        <td><span class="money-text">@item.B_Money</span></td>
                                        <td><span class="money-text">@item.B_Money</span></td>
                                        <td><span class="money-text">@item.B_Balance</span></td>
                                    </tr>
                                }
                               

                            </tbody>
                        </table>
                    }
                    else
                    {
                        <div class="empty">暂无记录</div>
                    }
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <nav class="text-center">
                            <ul class="pagination">

                                @if (Convert.ToInt32(ViewBag.index) <= 1)
                                {
                                    <li class="disabled">

                                        <span aria-hidden="true">上一页</span>

                                    </li>
                                }
                                else
                                {
                                    <li>
                                        <a href="/Trade/virtualcoin/@(Convert.ToInt32(ViewBag.index) - 1)" aria-label="Previous">
                                            <span aria-hidden="true">上一页</span>
                                        </a>
                                    </li>
                                }
                                @for (int i = 1; i <= Convert.ToInt32(ViewBag.pagecount); i++)
                                {

                                    if (Convert.ToInt32(ViewBag.index) == Convert.ToInt32(i))
                                    {
                                        <li class="active"><span class="disabled">@i</span> </li>
                                    }
                                    else
                                    {
                                        <li><a href="/Trade/virtualcoin/@i">@i</a></li>
                                    }


                                }

                                @if (Convert.ToInt32(ViewBag.index) >= Convert.ToInt32(ViewBag.pagecount))
                                {
                                    <li class="disabled">

                                        <span aria-hidden="true">下一页</span>

                                    </li>
                                }
                                else
                                {
                                    <li>
                                        <a href="/Trade/virtualcoin/@(Convert.ToInt32(ViewBag.index) + 1)" aria-label="Next">
                                            <span aria-hidden="true">下一页</span>
                                        </a>
                                    </li>
                                }

                            </ul>
                        </nav>
                    </div>
                </div>
            </div>

        </div>
    </div>


    <script>
        var app = {};
        app.debug = false;
        app.version = '6.9.6';
        app.httpHost = 'http://www.zhishile.com';
        app.basePath = '';
        app.theme = 'jianmo';
        app.themeGlobalScript = 'theme/global-script';
        app.jsPaths = { "common": "common", "theme": "\/themes\/jianmo\/js", "customwebbundle": "\/bundles\/customweb\/js", "customadminbundle": "\/bundles\/customadmin\/js", "topxiawebbundle": "\/bundles\/topxiaweb\/js", "topxiaadminbundle": "\/bundles\/topxiaadmin\/js", "classroombundle": "\/bundles\/classroom\/js" };

        app.crontab = '/common/crontab';

        var CKEDITOR_BASEPATH = app.basePath + '/assets/libs/ckeditor/4.6.7/';

        app.config = { "api": { "weibo": { "key": "" }, "qq": { "key": "" }, "douban": { "key": "" }, "renren": { "key": "" } }, "cloud": { "video_player": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/GrindPlayer.swf", "video_player_watermark_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Watermake-1.0.3.swf", "video_player_fingerprint_plugin": "http:\/\/cdn.staticfile.org\/GrindPlayerCN\/1.0.2\/Fingerprint-1.0.1.swf" }, "loading_img_path": "\/assets\/img\/default\/loading.gif?6.9.6" };

        app.arguments = {};

        app.scripts = null;

        app.uploadUrl = '/file/upload';
        app.imgCropUrl = '/file/img/crop';
        app.lessonCopyEnabled = '0';

        app.mainScript = '/bundles/topxiaadmin/js/admin-app.js?6.9.6';
    </script>
    <script src="~/Content/js/sea.js"></script>
    <script src="~/Content/js/seajs-style.js"></script>
    <script src="~/Content/js/seajs-global-config.js"></script>
    <script>
        seajs.use(app.mainScript);
    </script>  <div id="modal" class="modal"></div>
    <div class="fixed-bar">
        <a href="http://www.zhishile.com/admin/feedback" target="_blank" class="icon-question-text feedback">
            <i class="es-icon es-icon-help"></i>
            <span>产品<br>反馈</span>
        </a>
    </div>



</body>
</html>



